package com.zebra.sys.rest;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zebra.sys.entity.SysArea;
import com.zebra.sys.service.SysAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.zebra.base.rest.BaseController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 销魂钉
 * @since 2020-06-10
 */
@RestController
@RequestMapping("/sys/sys-area")
public class SysAreaController extends BaseController {

    @Autowired
    private SysAreaService sysAreaService;
    @GetMapping(value = "get")
    public SysArea get(@RequestBody String id){
        System.out.println(id);
        QueryWrapper<SysArea> query = Wrappers.query();
        query.eq("id",id);
        SysArea one = sysAreaService.getOne(query);
        return one;
    }
}
